.class public Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field protected a:Landroid/widget/RelativeLayout;

.field protected b:Landroid/widget/EditText;

.field protected c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field protected d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/ImageView;

.field private j:Landroid/widget/ImageButton;

.field private k:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

.field private l:Ljava/util/ArrayList;

.field private m:Lcom/waiqin365/lightapp/kehu/share/a/d;

.field private n:Landroid/widget/LinearLayout;

.field private o:Landroid/widget/RelativeLayout;

.field private p:Lcom/waiqin365/lightapp/kehu/c/l;

.field private q:Lcom/waiqin365/lightapp/view/NoNetView;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/c;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/contactlist/c;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->p:Lcom/waiqin365/lightapp/kehu/c/l;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->b()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 10

    const/4 v9, 0x1

    const/16 v8, 0x8

    const/4 v7, 0x0

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v1, v7}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v1, v8}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->m:Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/im/contactlist/a/a;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/a;->notifyDataSetChanged()V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v2}, Ljava/util/ArrayList;->clear()V

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v0

    sget-object v1, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v0, v1, v7}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/base/db/offlinedata/q;Z)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1
    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->c:Ljava/lang/String;

    const-string/jumbo v1, ""

    const-string/jumbo v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v6

    array-length v6, v6

    if-le v6, v9, :cond_2

    const-string/jumbo v1, " "

    invoke-virtual {v5, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    aget-object v1, v1, v9

    :cond_2
    invoke-virtual {p1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    const/4 v6, -0x1

    if-ne v4, v6, :cond_3

    invoke-virtual {p1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_3

    invoke-virtual {p1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_3
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_4
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->m:Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-static {v2, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/im/contactlist/a/a;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/a;->notifyDataSetChanged()V

    goto/16 :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v8}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)Landroid/widget/ImageButton;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->j:Landroid/widget/ImageButton;

    return-object v0
.end method

.method private b()V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v1

    sget-object v2, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v1, v2, v3}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/base/db/offlinedata/q;Z)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->m:Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/a;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->o:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->o:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->o:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)Lcom/waiqin365/lightapp/kehu/c/l;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->p:Lcom/waiqin365/lightapp/kehu/c/l;

    return-object v0
.end method

.method private c()V
    .locals 3

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    const v0, 0x7f0c070f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->i:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->i:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0711

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->e:Landroid/widget/TextView;

    const v0, 0x7f0c0712

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->f:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c07a0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->g:Landroid/widget/TextView;

    const v0, 0x7f0c079f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->h:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->e:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080761

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c079e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    const v0, 0x7f0c079b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->n:Landroid/widget/LinearLayout;

    const v0, 0x7f0c079c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->o:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c07a1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->k:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->k:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setTextView(Landroid/widget/TextView;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->k:Lcom/waiqin365/lightapp/kehu/share/view/SideBar;

    new-instance v1, Lcom/waiqin365/lightapp/im/contactlist/d;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/contactlist/d;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setOnTouchingLetterChangedListener(Lcom/waiqin365/lightapp/kehu/share/view/d;)V

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03014e

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v0, 0x7f0c07ab

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->a:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0860

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->j:Landroid/widget/ImageButton;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->j:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c06ac

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->b:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->b:Landroid/widget/EditText;

    new-instance v2, Lcom/waiqin365/lightapp/im/contactlist/e;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/im/contactlist/e;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/a/a;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v2}, Lcom/waiqin365/lightapp/im/contactlist/a/a;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->addHeaderView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/im/contactlist/f;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/contactlist/f;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/im/contactlist/g;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/contactlist/g;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method


# virtual methods
.method protected a(I)V
    .locals 13

    const v4, 0x7f0806b1

    const/4 v12, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->d:Lcom/waiqin365/lightapp/im/contactlist/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/a/a;->a()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->n:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    const-string/jumbo v1, "3"

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->n:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "title"

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "msg"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f080306

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->startActivity(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "title"

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "msg"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f080309

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :cond_1
    new-instance v2, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->mContext:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v5

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v6, "_"

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v6

    invoke-virtual {v6}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->c()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const v0, 0x7f080073

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v6, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->j:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v7, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v8, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->e:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v9, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->l:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v10, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->n:Ljava/lang/String;

    const-string/jumbo v0, "toChatUsername"

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v11, "_"

    invoke-virtual {v5, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "userId"

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "id"

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "userName"

    invoke-virtual {v2, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "name"

    invoke-virtual {v2, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v4, "department"

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v5

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->g:Ljava/lang/String;

    invoke-virtual {v5, v0}, Lcom/waiqin365/base/db/offlinedata/m;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v4, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "emp_position"

    invoke-virtual {v2, v0, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "phone"

    invoke-virtual {v2, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "tel"

    invoke-virtual {v2, v0, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "pic_url"

    invoke-virtual {v2, v0, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string/jumbo v0, "sendable"

    invoke-virtual {v2, v0, v12}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    :cond_3
    :goto_1
    const/16 v0, 0x65

    invoke-virtual {p0, v2, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v0, "1"

    invoke-virtual {v0, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string/jumbo v0, "sendable"

    invoke-virtual {v2, v0, v12}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    goto :goto_1
.end method

.method public back()V
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->overridePendingTransition(II)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    packed-switch p1, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->back()V

    goto :goto_0

    :pswitch_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x65
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public onBackPressed()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->back()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->back()V

    goto :goto_0

    :sswitch_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/16 v1, 0x67

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->b:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->clear()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c070f -> :sswitch_0
        0x7f0c07ab -> :sswitch_1
        0x7f0c0860 -> :sswitch_2
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03014c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->setContentView(I)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/d;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/d;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->m:Lcom/waiqin365/lightapp/kehu/share/a/d;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->l:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->c()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListActivity;->p:Lcom/waiqin365/lightapp/kehu/c/l;

    invoke-static {p0, v1, v1, v0}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->addObserver(Ljava/util/Observer;)V

    return-void
.end method
